p_list = ['change', '12345']


def account_login():
    pwd = input('Password:')
    if pwd == p_list[-1]:
        print('Login Succeess')
    elif pwd == p_list[0]:
        new_pwd = input('New Pwd:')
        p_list.append(new_pwd)
        print('Change Success')
        account_login()
    else:
        print('Wrong Pwd or Invalid Pwd')
        account_login()


account_login()
